﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PS3Packager.UserControls
{
    public partial class TextEditBrowse : UserControl
    {
        public TextEditBrowse()
        {
            InitializeComponent();
        }

        public delegate void BrowseButtonClickedHandler(TextEditBrowse sender);
        public event BrowseButtonClickedHandler BrowseButtonClicked;

        public string Text
        {
            get { return textBox.Text; }
            set { textBox.Text = value; }
        }

        private void buttonBrowse_Click(object sender, EventArgs e)
        {
            BrowseButtonClickedHandler tmpevent = BrowseButtonClicked;
            if (tmpevent != null)
            {
                tmpevent(this);
            }
        }
    }
}
